import { axios } from "../../../utils/request";

const api = {
    pageList: "/crm/callVoice/pageList",   
    saveVoice: "/crm/callVoice/saveVoice",
    uploadVoice:"/crm/callVoice/uploadVoice",     // 上传语音文件
    delete: "/crm/callVoice/delete"
};


/**
 * 列表
 */
export function pageList(data) {
    return axios({
        url: api.pageList,
        method: "post",
        data: data
    });
  }

/**
 * 保存
 */
export function save(data) {
  return axios({
    url: api.saveVoice,
    method: "post",
    data: data
  });
}


/**
 * 删除
 */
export function deleteVoice(parameter) {
  return axios({
    url: api.delete,
    method: "DELETE",
    params: parameter
  });
}

/**
 * 上传语音文件
 */
export function uploadVoice(data) {
  return axios({
    url: api.uploadVoice,
    method: "post",
    data: data
  });
}

